package tech.aistar.day04;

import java.util.Date;

/**
 * 本类用来演示: 订单类
 *
 * @author: success
 * @date: 2022/7/21 3:16 下午
 */
public class Ord {
    private int id;
    private String ordNo;
    private int status;
    private double price;
    private Date createDate;

    public Ord() {
    }

    public Ord(int id, String ordNo, int status, double price, Date createDate) {
        this.id = id;
        this.ordNo = ordNo;
        this.status = status;
        this.price = price;
        this.createDate = createDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrdNo() {
        return ordNo;
    }

    public void setOrdNo(String ordNo) {
        this.ordNo = ordNo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Ord{");
        sb.append("id=").append(id);
        sb.append(", ordNo='").append(ordNo).append('\'');
        sb.append(", status=").append(status);
        sb.append(", price=").append(price);
        sb.append(", createDate=").append(createDate);
        sb.append('}');
        return sb.toString();
    }
}
